﻿<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:pokerclockandgoodies"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Input="using:Telerik.UI.Xaml.Controls.Input"
    xmlns:Primitives="using:Telerik.UI.Xaml.Controls.Primitives"
    x:Class="PokerClockAndGoodies.ClockPage"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="41*"/>
            <RowDefinition Height="727*"/>
        </Grid.RowDefinitions>
        <TextBox x:Name="txtBigBlind" HorizontalAlignment="Left" Margin="170,63,0,0" TextWrapping="Wrap" Text="10" VerticalAlignment="Top" RenderTransformOrigin="0.395,-1.156" Grid.Row="1"/>
        <TextBlock x:Name="lblBigBlind" HorizontalAlignment="Left" Margin="76,63,0,0" TextWrapping="Wrap" Text="Big blind" VerticalAlignment="Top" Height="32" Width="66" Grid.Row="1"/>
        <Slider x:Name="sldBigBlind" HorizontalAlignment="Left" Margin="282,54,0,0" VerticalAlignment="Top" Width="100" Height="32" Grid.Row="1" StepFrequency="5" Value="{Binding Text, ElementName=txtBigBlind, Mode=TwoWay}"/>
        <TextBox x:Name="txtSmallBlind" HorizontalAlignment="Left" Margin="170,0,0,0" Grid.Row="1" TextWrapping="Wrap" Text="5" VerticalAlignment="Top"/>
        <TextBlock x:Name="lblSmallBlind" HorizontalAlignment="Left" Margin="76,10,0,0" Grid.Row="1" TextWrapping="Wrap" VerticalAlignment="Top">
        	<Run Text="Small blind"/>
        	<LineBreak/>
        	<Run/>
        </TextBlock>
        <Slider x:Name="sldSmallBlind" HorizontalAlignment="Left" Margin="282,35,0,0" VerticalAlignment="Top" Width="100" Grid.RowSpan="2" SmallChange="0" StepFrequency="5" Value="{Binding Text, ElementName=txtSmallBlind, Mode=TwoWay}"/>
        <TextBlock x:Name="lblNbPlayer" HorizontalAlignment="Left" Margin="76,122,0,0" Grid.Row="1" TextWrapping="Wrap" VerticalAlignment="Top">
        	<Run Text="Player"/>
        	<LineBreak/>
        	<Run/>
        </TextBlock>
        <TextBox x:Name="txtNbPlayer" HorizontalAlignment="Left" Margin="170,122,0,0" Grid.Row="1" TextWrapping="Wrap" Text="2" VerticalAlignment="Top" Width="64"/>
        <Slider x:Name="sldNbPlayer" HorizontalAlignment="Left" Margin="282,113,0,0" Grid.Row="1" VerticalAlignment="Top" Width="100"/>
        <TextBlock x:Name="lblRoundDuration" HorizontalAlignment="Left" Margin="76,176,0,0" Grid.Row="1" TextWrapping="Wrap" VerticalAlignment="Top">
        	<Run Text="Round duration"/>
        	<LineBreak/>
        	<Run Text="(minute)"/>
        	<LineBreak/>
        	<Run/>
        </TextBlock>
        <TextBox x:Name="txtRoundDuration" HorizontalAlignment="Left" Margin="170,170,0,0" Grid.Row="1" TextWrapping="Wrap" Text="30&#xD;&#xA;" VerticalAlignment="Top" Width="64"/>
        <Slider x:Name="sldRoundDuration" HorizontalAlignment="Left" Margin="298,185,0,0" Grid.Row="1" VerticalAlignment="Top" Width="100"/>
        <ToggleSwitch x:Name="tgsAnt" Header="Ant" HorizontalAlignment="Left" Margin="76,244,0,0" Grid.Row="1" VerticalAlignment="Top" OffContent="Off" OnContent="On"/>
        <TextBox x:Name="txtAntValue" HorizontalAlignment="Left" Margin="282,266,0,0" Grid.Row="1" TextWrapping="Wrap" Text="25&#xD;&#xA;" VerticalAlignment="Top" Width="50" Height="33" IsEnabled="{Binding IsOn, ElementName=tgsAnt}"/>
        <Button x:Name="txtStart" Content="Start" HorizontalAlignment="Left" Margin="95,344,0,0" Grid.Row="1" VerticalAlignment="Top"/>
        <Button x:Name="backButton" Click="GoBack" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}" Margin="36,0,0,664" Grid.Row="1"/>
    </Grid>
</Page>
